<?php
$this->pageTitle     = $post->titleSeo . ' - ' . Option::getItem('site_name');
$this->meta_desc     = $post->meta_desc;
$this->meta_keywords = $post->meta_keyword;
?>
<div class="content">
    <div class="main-wrap">
        <div class="colum-right fl product-hl">
            <div id="content" style="margin-top: 10px">
                <h1 class="title-product news-title">
                    <a href="<?php echo $post->publicUrl ?>">
                        <?php echo $post->title ?>
                    </a>                  
                </h1>
                <div class="facebook-like">
                    <div style="font-weight: 700;color: #0181a6"><?php echo Option::getItem('noti_social') ?></div>
                    <!-- AddThis Button BEGIN -->
                    <div class="addthis_toolbox addthis_default_style ">
                        <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
                        <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
                        <a class="addthis_button_tweet"></a>
                        <a class="addthis_counter addthis_pill_style"></a>
                    </div>
                    <script type="text/javascript">var addthis_config = {"data_track_addressbar": false};</script>
                    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-534fa53d4e81299e"></script>
                    <!-- AddThis Button END -->
                    <div class="clear"></div>
                </div>
                <div class="content-news">
                    <?php echo $post->content ?>
                </div>
            </div>
        </div>
        <div class="fr colum-left mr-r-none">
            <!--box hotline-->
            <?php echo $this->renderPartial('//layouts/box_hotline') ?>
            <!-- end box hotline-->
            <?php if ($relations): ?>
                <div class="project_relation box-hotline">
                    <h4 class="name-box">
                        Bài viết khác
                    </h4>
                    <div class="r-list">
                        <?php foreach ($relations as $value): ?>
                            <div class="p-item">
                                <h3 class="r-title title-product">
                                    <a href="<?php echo $value->publicUrl ?>" title="<?php echo $value->title ?>">
                                        <?php echo $value->title ?>
                                    </a>
                                </h3>
                                <div class="row-fluid">
                                    <img class="span5" src="<?php echo $value->getPublicPhoto(76, 76) ?>" alt="<?php echo $value->url ?>"/>
                                    <div class="span7">
                                        <?php echo MyUtil::word_limiter($value->description, 14) ?>
                                    </div>
                                </div>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </div>
            <?php endif; ?>
        </div>
        <div class="clear"></div>
        <br>

    </div>
</div>